namespace QMVnSoft.ReportForms
{
    using QMVnSoft;
    using QMVnSoft.Controls;
    using QMVnSoft.DAL;
    using System;
    using System.ComponentModel;
    using System.Drawing;
    using System.Windows.Forms;

    public class FormKCT12Viewer : FormReportViewer
    {
        private IContainer components;
        private object is_Tk_Du1;
        private object is_Tk_Du2;
        private object is_Tk_Du3;
        private object is_Tk_Du4;
        private object is_Tk_Du5;
        private object is_Tk_Du6;
        private LabelControl labelTk_Du2;
        private LabelControl labelTk_Du3;
        private LabelControl lblNgay_Ct1;
        private LabelControl lblNgay_Ct2;
        private LabelControl lblNo_Co;
        private LabelControl lblTk;
        private LabelControl lblTk_Du1;
        private LabelControl lblTk_Du4;
        private LabelControl lblTk_Du5;
        private LabelControl lblTk_Du6;
        private TextDate txtNgay_Ct1;
        private TextDate txtNgay_Ct2;
        private TextOption txtNo_Co;
        private LabelControl txtNo_Co0;
        private TextControl txtTen_Tk;
        private TextControl txtTen_Tk_Du1;
        private TextControl txtTen_Tk_Du2;
        private TextControl txtTen_Tk_Du3;
        private TextControl txtTen_Tk_Du4;
        private TextControl txtTen_Tk_Du5;
        private TextControl txtTen_Tk_Du6;
        private TextSearch txtTk;
        private TextSearch txtTk_Du1;
        private TextSearch txtTk_Du2;
        private TextSearch txtTk_Du3;
        private TextSearch txtTk_Du4;
        private TextSearch txtTk_Du5;
        private TextSearch txtTk_Du6;

        public FormKCT12Viewer()
        {
            this.is_Tk_Du1 = DBNull.Value;
            this.is_Tk_Du2 = DBNull.Value;
            this.is_Tk_Du3 = DBNull.Value;
            this.is_Tk_Du4 = DBNull.Value;
            this.is_Tk_Du5 = DBNull.Value;
            this.is_Tk_Du6 = DBNull.Value;
            this.InitializeComponent();
            this.txtNgay_Ct1.Value = AppInstance.StartWorkingDate;
            this.txtNgay_Ct2.Value = AppInstance.EndWorkingDate;
        }

        public FormKCT12Viewer(object pd_Ngay_Ct1, object pd_Ngay_Ct2, object ps_Tk, object ps_No_Co, object ps_Tk_Du1, object ps_Tk_Du2, object ps_Tk_Du3, object ps_Tk_Du4, object ps_Tk_Du5, object ps_Tk_Du6, object pi_Loai_Tte)
        {
            this.is_Tk_Du1 = DBNull.Value;
            this.is_Tk_Du2 = DBNull.Value;
            this.is_Tk_Du3 = DBNull.Value;
            this.is_Tk_Du4 = DBNull.Value;
            this.is_Tk_Du5 = DBNull.Value;
            this.is_Tk_Du6 = DBNull.Value;
            this.InitializeComponent();
            this.txtNgay_Ct1.Value = pd_Ngay_Ct1;
            this.txtNgay_Ct2.Value = pd_Ngay_Ct2;
            this.txtTk.Value = ps_Tk;
            this.txtNo_Co.Value = ps_No_Co;
            this.txtTk_Du1.Value = ps_Tk_Du1;
            this.txtTk_Du2.Value = ps_Tk_Du2;
            this.txtTk_Du3.Value = ps_Tk_Du3;
            this.txtTk_Du4.Value = ps_Tk_Du4;
            this.txtTk_Du5.Value = ps_Tk_Du5;
            this.txtTk_Du6.Value = ps_Tk_Du6;
            this.txtTen_Tk.Value = this.txtTk.GetFieldData("Ten_Tk");
            this.txtTen_Tk_Du1.Value = this.txtTk_Du1.GetFieldData("Ten_Tk");
            this.txtTen_Tk_Du2.Value = this.txtTk_Du2.GetFieldData("Ten_Tk");
            this.txtTen_Tk_Du3.Value = this.txtTk_Du3.GetFieldData("Ten_Tk");
            this.txtTen_Tk_Du4.Value = this.txtTk_Du4.GetFieldData("Ten_Tk");
            this.txtTen_Tk_Du5.Value = this.txtTk_Du5.GetFieldData("Ten_Tk");
            this.txtTen_Tk_Du6.Value = this.txtTk_Du6.GetFieldData("Ten_Tk");
            this.OnMakeReport();
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormKCT12Viewer));
            this.txtNo_Co0 = new QMVnSoft.Controls.LabelControl();
            this.txtNo_Co = new QMVnSoft.Controls.TextOption();
            this.txtTen_Tk_Du1 = new QMVnSoft.Controls.TextControl();
            this.txtTen_Tk = new QMVnSoft.Controls.TextControl();
            this.txtTk_Du1 = new QMVnSoft.Controls.TextSearch();
            this.txtTk = new QMVnSoft.Controls.TextSearch();
            this.lblTk_Du1 = new QMVnSoft.Controls.LabelControl();
            this.lblNo_Co = new QMVnSoft.Controls.LabelControl();
            this.lblTk = new QMVnSoft.Controls.LabelControl();
            this.txtNgay_Ct2 = new QMVnSoft.Controls.TextDate();
            this.lblNgay_Ct2 = new QMVnSoft.Controls.LabelControl();
            this.txtNgay_Ct1 = new QMVnSoft.Controls.TextDate();
            this.lblNgay_Ct1 = new QMVnSoft.Controls.LabelControl();
            this.txtTen_Tk_Du2 = new QMVnSoft.Controls.TextControl();
            this.txtTk_Du2 = new QMVnSoft.Controls.TextSearch();
            this.labelTk_Du2 = new QMVnSoft.Controls.LabelControl();
            this.txtTen_Tk_Du3 = new QMVnSoft.Controls.TextControl();
            this.txtTk_Du3 = new QMVnSoft.Controls.TextSearch();
            this.labelTk_Du3 = new QMVnSoft.Controls.LabelControl();
            this.txtTen_Tk_Du6 = new QMVnSoft.Controls.TextControl();
            this.txtTk_Du6 = new QMVnSoft.Controls.TextSearch();
            this.lblTk_Du6 = new QMVnSoft.Controls.LabelControl();
            this.txtTen_Tk_Du5 = new QMVnSoft.Controls.TextControl();
            this.txtTk_Du5 = new QMVnSoft.Controls.TextSearch();
            this.lblTk_Du5 = new QMVnSoft.Controls.LabelControl();
            this.txtTen_Tk_Du4 = new QMVnSoft.Controls.TextControl();
            this.txtTk_Du4 = new QMVnSoft.Controls.TextSearch();
            this.lblTk_Du4 = new QMVnSoft.Controls.LabelControl();
            this.rptContainer.Panel1.SuspendLayout();
            this.rptContainer.SuspendLayout();
            this.SuspendLayout();
            // 
            // rptContainer
            // 
            // 
            // rptContainer.Panel1
            // 
            this.rptContainer.Panel1.Controls.Add(this.txtTen_Tk_Du6);
            this.rptContainer.Panel1.Controls.Add(this.txtTk_Du6);
            this.rptContainer.Panel1.Controls.Add(this.lblTk_Du6);
            this.rptContainer.Panel1.Controls.Add(this.txtTen_Tk_Du5);
            this.rptContainer.Panel1.Controls.Add(this.txtTk_Du5);
            this.rptContainer.Panel1.Controls.Add(this.lblTk_Du5);
            this.rptContainer.Panel1.Controls.Add(this.txtTen_Tk_Du4);
            this.rptContainer.Panel1.Controls.Add(this.txtTk_Du4);
            this.rptContainer.Panel1.Controls.Add(this.lblTk_Du4);
            this.rptContainer.Panel1.Controls.Add(this.txtTen_Tk_Du3);
            this.rptContainer.Panel1.Controls.Add(this.txtTk_Du3);
            this.rptContainer.Panel1.Controls.Add(this.labelTk_Du3);
            this.rptContainer.Panel1.Controls.Add(this.txtTen_Tk_Du2);
            this.rptContainer.Panel1.Controls.Add(this.txtTk_Du2);
            this.rptContainer.Panel1.Controls.Add(this.labelTk_Du2);
            this.rptContainer.Panel1.Controls.Add(this.txtNgay_Ct2);
            this.rptContainer.Panel1.Controls.Add(this.lblNgay_Ct2);
            this.rptContainer.Panel1.Controls.Add(this.txtNgay_Ct1);
            this.rptContainer.Panel1.Controls.Add(this.lblNgay_Ct1);
            this.rptContainer.Panel1.Controls.Add(this.txtNo_Co0);
            this.rptContainer.Panel1.Controls.Add(this.txtNo_Co);
            this.rptContainer.Panel1.Controls.Add(this.txtTen_Tk_Du1);
            this.rptContainer.Panel1.Controls.Add(this.txtTen_Tk);
            this.rptContainer.Panel1.Controls.Add(this.txtTk_Du1);
            this.rptContainer.Panel1.Controls.Add(this.txtTk);
            this.rptContainer.Panel1.Controls.Add(this.lblTk_Du1);
            this.rptContainer.Panel1.Controls.Add(this.lblNo_Co);
            this.rptContainer.Panel1.Controls.Add(this.lblTk);
            this.rptContainer.SplitterDistance = 130;
            this.rptContainer.TabIndex = 0;
            // 
            // txtNo_Co0
            // 
            this.txtNo_Co0.AutoSize = true;
            this.txtNo_Co0.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtNo_Co0.ForeColor = System.Drawing.Color.Blue;
            this.txtNo_Co0.Location = new System.Drawing.Point(119, 48);
            this.txtNo_Co0.Name = "txtNo_Co0";
            this.txtNo_Co0.Size = new System.Drawing.Size(62, 14);
            this.txtNo_Co0.TabIndex = 5;
            this.txtNo_Co0.Text = "N-Nợ, C-Có";
            // 
            // txtNo_Co
            // 
            this.txtNo_Co.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtNo_Co.CheckTextSearched = false;
            this.txtNo_Co.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtNo_Co.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtNo_Co.InputMask = "N,C";
            this.txtNo_Co.Location = new System.Drawing.Point(91, 45);
            this.txtNo_Co.Name = "txtNo_Co";
            this.txtNo_Co.OldValue = null;
            this.txtNo_Co.Size = new System.Drawing.Size(22, 20);
            this.txtNo_Co.TabIndex = 4;
            this.txtNo_Co.Text = "N";
            this.txtNo_Co.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
            this.txtNo_Co.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtNo_Co.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtNo_Co.Value = "N";
            // 
            // txtTen_Tk_Du1
            // 
            this.txtTen_Tk_Du1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTen_Tk_Du1.BackColor = System.Drawing.SystemColors.Control;
            this.txtTen_Tk_Du1.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_Tk_Du1.CheckTextSearched = false;
            this.txtTen_Tk_Du1.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_Tk_Du1.Enabled = false;
            this.txtTen_Tk_Du1.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Tk_Du1.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_Tk_Du1.Location = new System.Drawing.Point(187, 70);
            this.txtTen_Tk_Du1.Name = "txtTen_Tk_Du1";
            this.txtTen_Tk_Du1.OldValue = null;
            this.txtTen_Tk_Du1.Size = new System.Drawing.Size(212, 13);
            this.txtTen_Tk_Du1.TabIndex = 7;
            this.txtTen_Tk_Du1.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtTen_Tk_Du1.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_Tk_Du1.Value = ((object)(resources.GetObject("txtTen_Tk_Du1.Value")));
            // 
            // txtTen_Tk
            // 
            this.txtTen_Tk.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTen_Tk.BackColor = System.Drawing.SystemColors.Control;
            this.txtTen_Tk.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_Tk.CheckTextSearched = false;
            this.txtTen_Tk.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_Tk.Enabled = false;
            this.txtTen_Tk.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Tk.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_Tk.Location = new System.Drawing.Point(187, 27);
            this.txtTen_Tk.Name = "txtTen_Tk";
            this.txtTen_Tk.OldValue = null;
            this.txtTen_Tk.Size = new System.Drawing.Size(212, 13);
            this.txtTen_Tk.TabIndex = 3;
            this.txtTen_Tk.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtTen_Tk.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_Tk.Value = ((object)(resources.GetObject("txtTen_Tk.Value")));
            // 
            // txtTk_Du1
            // 
            this.txtTk_Du1.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtTk_Du1.CheckTextSearched = false;
            this.txtTk_Du1.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtTk_Du1.EmptyIsValid = true;
            this.txtTk_Du1.FieldDisplay = "Ten_Tk";
            this.txtTk_Du1.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTk_Du1.FoundIsValid = true;
            this.txtTk_Du1.Location = new System.Drawing.Point(91, 66);
            this.txtTk_Du1.MaxLength = 32;
            this.txtTk_Du1.Name = "txtTk_Du1";
            this.txtTk_Du1.OldValue = null;
            this.txtTk_Du1.Size = new System.Drawing.Size(90, 20);
            this.txtTk_Du1.TabIndex = 6;
            this.txtTk_Du1.TableName = "DMTK";
            this.txtTk_Du1.TextDisplay = this.txtTen_Tk_Du1;
            this.txtTk_Du1.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.txtTk_Du1.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtTk_Du1.Value = ((object)(resources.GetObject("txtTk_Du1.Value")));
            // 
            // txtTk
            // 
            this.txtTk.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtTk.CheckTextSearched = false;
            this.txtTk.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtTk.FieldDisplay = "Ten_Tk";
            this.txtTk.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTk.FoundIsValid = true;
            this.txtTk.Location = new System.Drawing.Point(91, 24);
            this.txtTk.MaxLength = 32;
            this.txtTk.Name = "txtTk";
            this.txtTk.OldValue = null;
            this.txtTk.Size = new System.Drawing.Size(90, 20);
            this.txtTk.TabIndex = 2;
            this.txtTk.TableName = "DMTK";
            this.txtTk.TextDisplay = this.txtTen_Tk;
            this.txtTk.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.txtTk.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtTk.Value = ((object)(resources.GetObject("txtTk.Value")));
            // 
            // lblTk_Du1
            // 
            this.lblTk_Du1.AutoSize = true;
            this.lblTk_Du1.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTk_Du1.Location = new System.Drawing.Point(8, 69);
            this.lblTk_Du1.Name = "lblTk_Du1";
            this.lblTk_Du1.Size = new System.Drawing.Size(66, 14);
            this.lblTk_Du1.TabIndex = 89;
            this.lblTk_Du1.Text = "Tk đối ứng 1";
            // 
            // lblNo_Co
            // 
            this.lblNo_Co.AutoSize = true;
            this.lblNo_Co.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblNo_Co.Location = new System.Drawing.Point(8, 48);
            this.lblNo_Co.Name = "lblNo_Co";
            this.lblNo_Co.Size = new System.Drawing.Size(51, 14);
            this.lblNo_Co.TabIndex = 88;
            this.lblNo_Co.Text = "Phát sinh";
            // 
            // lblTk
            // 
            this.lblTk.AutoSize = true;
            this.lblTk.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTk.Location = new System.Drawing.Point(8, 27);
            this.lblTk.Name = "lblTk";
            this.lblTk.Size = new System.Drawing.Size(53, 14);
            this.lblTk.TabIndex = 87;
            this.lblTk.Text = "Tài khoản";
            // 
            // txtNgay_Ct2
            // 
            this.txtNgay_Ct2.DateTimeFormat  = QMVnSoft.Controls.TextDate.DateTimeFormatType.Date;
            this.txtNgay_Ct2.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtNgay_Ct2.InsertKeyMode = System.Windows.Forms.InsertKeyMode.Overwrite;
            this.txtNgay_Ct2.Location = new System.Drawing.Point(487, 3);
            this.txtNgay_Ct2.Mask = "00/00/0000";
            this.txtNgay_Ct2.Name = "txtNgay_Ct2";
            this.txtNgay_Ct2.OldValue = null;
            this.txtNgay_Ct2.Size = new System.Drawing.Size(90, 20);
            this.txtNgay_Ct2.TabIndex = 1;
            this.txtNgay_Ct2.Value = ((object)(resources.GetObject("txtNgay_Ct2.Value")));
            // 
            // lblNgay_Ct2
            // 
            this.lblNgay_Ct2.AutoSize = true;
            this.lblNgay_Ct2.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblNgay_Ct2.Location = new System.Drawing.Point(400, 6);
            this.lblNgay_Ct2.Name = "lblNgay_Ct2";
            this.lblNgay_Ct2.Size = new System.Drawing.Size(54, 14);
            this.lblNgay_Ct2.TabIndex = 97;
            this.lblNgay_Ct2.Text = "Đến ngày";
            // 
            // txtNgay_Ct1
            // 
            this.txtNgay_Ct1.DateTimeFormat  = QMVnSoft.Controls.TextDate.DateTimeFormatType.Date;
            this.txtNgay_Ct1.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtNgay_Ct1.InsertKeyMode = System.Windows.Forms.InsertKeyMode.Overwrite;
            this.txtNgay_Ct1.Location = new System.Drawing.Point(91, 3);
            this.txtNgay_Ct1.Mask = "00/00/0000";
            this.txtNgay_Ct1.Name = "txtNgay_Ct1";
            this.txtNgay_Ct1.OldValue = null;
            this.txtNgay_Ct1.Size = new System.Drawing.Size(90, 20);
            this.txtNgay_Ct1.TabIndex = 0;
            this.txtNgay_Ct1.Value = ((object)(resources.GetObject("txtNgay_Ct1.Value")));
            // 
            // lblNgay_Ct1
            // 
            this.lblNgay_Ct1.AutoSize = true;
            this.lblNgay_Ct1.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblNgay_Ct1.Location = new System.Drawing.Point(8, 7);
            this.lblNgay_Ct1.Name = "lblNgay_Ct1";
            this.lblNgay_Ct1.Size = new System.Drawing.Size(47, 14);
            this.lblNgay_Ct1.TabIndex = 98;
            this.lblNgay_Ct1.Text = "Từ ngày";
            // 
            // txtTen_Tk_Du2
            // 
            this.txtTen_Tk_Du2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTen_Tk_Du2.BackColor = System.Drawing.SystemColors.Control;
            this.txtTen_Tk_Du2.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_Tk_Du2.CheckTextSearched = false;
            this.txtTen_Tk_Du2.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_Tk_Du2.Enabled = false;
            this.txtTen_Tk_Du2.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Tk_Du2.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_Tk_Du2.Location = new System.Drawing.Point(187, 91);
            this.txtTen_Tk_Du2.Name = "txtTen_Tk_Du2";
            this.txtTen_Tk_Du2.OldValue = null;
            this.txtTen_Tk_Du2.Size = new System.Drawing.Size(212, 13);
            this.txtTen_Tk_Du2.TabIndex = 9;
            this.txtTen_Tk_Du2.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtTen_Tk_Du2.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_Tk_Du2.Value = ((object)(resources.GetObject("txtTen_Tk_Du2.Value")));
            // 
            // txtTk_Du2
            // 
            this.txtTk_Du2.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtTk_Du2.CheckTextSearched = false;
            this.txtTk_Du2.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtTk_Du2.EmptyIsValid = true;
            this.txtTk_Du2.FieldDisplay = "Ten_Tk";
            this.txtTk_Du2.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTk_Du2.FoundIsValid = true;
            this.txtTk_Du2.Location = new System.Drawing.Point(91, 87);
            this.txtTk_Du2.MaxLength = 32;
            this.txtTk_Du2.Name = "txtTk_Du2";
            this.txtTk_Du2.OldValue = null;
            this.txtTk_Du2.Size = new System.Drawing.Size(90, 20);
            this.txtTk_Du2.TabIndex = 8;
            this.txtTk_Du2.TableName = "DMTK";
            this.txtTk_Du2.TextDisplay = this.txtTen_Tk_Du2;
            this.txtTk_Du2.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.txtTk_Du2.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtTk_Du2.Value = ((object)(resources.GetObject("txtTk_Du2.Value")));
            // 
            // labelTk_Du2
            // 
            this.labelTk_Du2.AutoSize = true;
            this.labelTk_Du2.Font = new System.Drawing.Font("Arial", 8.25F);
            this.labelTk_Du2.Location = new System.Drawing.Point(8, 90);
            this.labelTk_Du2.Name = "labelTk_Du2";
            this.labelTk_Du2.Size = new System.Drawing.Size(66, 14);
            this.labelTk_Du2.TabIndex = 100;
            this.labelTk_Du2.Text = "Tk đối ứng 2";
            // 
            // txtTen_Tk_Du3
            // 
            this.txtTen_Tk_Du3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTen_Tk_Du3.BackColor = System.Drawing.SystemColors.Control;
            this.txtTen_Tk_Du3.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_Tk_Du3.CheckTextSearched = false;
            this.txtTen_Tk_Du3.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_Tk_Du3.Enabled = false;
            this.txtTen_Tk_Du3.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Tk_Du3.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_Tk_Du3.Location = new System.Drawing.Point(187, 112);
            this.txtTen_Tk_Du3.Name = "txtTen_Tk_Du3";
            this.txtTen_Tk_Du3.OldValue = null;
            this.txtTen_Tk_Du3.Size = new System.Drawing.Size(212, 13);
            this.txtTen_Tk_Du3.TabIndex = 11;
            this.txtTen_Tk_Du3.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtTen_Tk_Du3.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_Tk_Du3.Value = ((object)(resources.GetObject("txtTen_Tk_Du3.Value")));
            // 
            // txtTk_Du3
            // 
            this.txtTk_Du3.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtTk_Du3.CheckTextSearched = false;
            this.txtTk_Du3.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtTk_Du3.EmptyIsValid = true;
            this.txtTk_Du3.FieldDisplay = "Ten_Tk";
            this.txtTk_Du3.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTk_Du3.FoundIsValid = true;
            this.txtTk_Du3.Location = new System.Drawing.Point(91, 108);
            this.txtTk_Du3.MaxLength = 32;
            this.txtTk_Du3.Name = "txtTk_Du3";
            this.txtTk_Du3.OldValue = null;
            this.txtTk_Du3.Size = new System.Drawing.Size(90, 20);
            this.txtTk_Du3.TabIndex = 10;
            this.txtTk_Du3.TableName = "DMTK";
            this.txtTk_Du3.TextDisplay = this.txtTen_Tk_Du3;
            this.txtTk_Du3.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.txtTk_Du3.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtTk_Du3.Value = ((object)(resources.GetObject("txtTk_Du3.Value")));
            // 
            // labelTk_Du3
            // 
            this.labelTk_Du3.AutoSize = true;
            this.labelTk_Du3.Font = new System.Drawing.Font("Arial", 8.25F);
            this.labelTk_Du3.Location = new System.Drawing.Point(8, 111);
            this.labelTk_Du3.Name = "labelTk_Du3";
            this.labelTk_Du3.Size = new System.Drawing.Size(66, 14);
            this.labelTk_Du3.TabIndex = 103;
            this.labelTk_Du3.Text = "Tk đối ứng 3";
            // 
            // txtTen_Tk_Du6
            // 
            this.txtTen_Tk_Du6.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTen_Tk_Du6.BackColor = System.Drawing.SystemColors.Control;
            this.txtTen_Tk_Du6.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_Tk_Du6.CheckTextSearched = false;
            this.txtTen_Tk_Du6.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_Tk_Du6.Enabled = false;
            this.txtTen_Tk_Du6.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Tk_Du6.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_Tk_Du6.Location = new System.Drawing.Point(583, 113);
            this.txtTen_Tk_Du6.Name = "txtTen_Tk_Du6";
            this.txtTen_Tk_Du6.OldValue = null;
            this.txtTen_Tk_Du6.Size = new System.Drawing.Size(203, 13);
            this.txtTen_Tk_Du6.TabIndex = 17;
            this.txtTen_Tk_Du6.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtTen_Tk_Du6.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_Tk_Du6.Value = ((object)(resources.GetObject("txtTen_Tk_Du6.Value")));
            // 
            // txtTk_Du6
            // 
            this.txtTk_Du6.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtTk_Du6.CheckTextSearched = false;
            this.txtTk_Du6.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtTk_Du6.EmptyIsValid = true;
            this.txtTk_Du6.FieldDisplay = "Ten_Tk";
            this.txtTk_Du6.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTk_Du6.FoundIsValid = true;
            this.txtTk_Du6.Location = new System.Drawing.Point(487, 109);
            this.txtTk_Du6.MaxLength = 32;
            this.txtTk_Du6.Name = "txtTk_Du6";
            this.txtTk_Du6.OldValue = null;
            this.txtTk_Du6.Size = new System.Drawing.Size(90, 20);
            this.txtTk_Du6.TabIndex = 16;
            this.txtTk_Du6.TableName = "DMTK";
            this.txtTk_Du6.TextDisplay = this.txtTen_Tk_Du6;
            this.txtTk_Du6.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.txtTk_Du6.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtTk_Du6.Value = ((object)(resources.GetObject("txtTk_Du6.Value")));
            // 
            // lblTk_Du6
            // 
            this.lblTk_Du6.AutoSize = true;
            this.lblTk_Du6.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTk_Du6.Location = new System.Drawing.Point(400, 112);
            this.lblTk_Du6.Name = "lblTk_Du6";
            this.lblTk_Du6.Size = new System.Drawing.Size(66, 14);
            this.lblTk_Du6.TabIndex = 112;
            this.lblTk_Du6.Text = "Tk đối ứng 6";
            // 
            // txtTen_Tk_Du5
            // 
            this.txtTen_Tk_Du5.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTen_Tk_Du5.BackColor = System.Drawing.SystemColors.Control;
            this.txtTen_Tk_Du5.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_Tk_Du5.CheckTextSearched = false;
            this.txtTen_Tk_Du5.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_Tk_Du5.Enabled = false;
            this.txtTen_Tk_Du5.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Tk_Du5.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_Tk_Du5.Location = new System.Drawing.Point(583, 92);
            this.txtTen_Tk_Du5.Name = "txtTen_Tk_Du5";
            this.txtTen_Tk_Du5.OldValue = null;
            this.txtTen_Tk_Du5.Size = new System.Drawing.Size(203, 13);
            this.txtTen_Tk_Du5.TabIndex = 15;
            this.txtTen_Tk_Du5.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtTen_Tk_Du5.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_Tk_Du5.Value = ((object)(resources.GetObject("txtTen_Tk_Du5.Value")));
            // 
            // txtTk_Du5
            // 
            this.txtTk_Du5.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtTk_Du5.CheckTextSearched = false;
            this.txtTk_Du5.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtTk_Du5.EmptyIsValid = true;
            this.txtTk_Du5.FieldDisplay = "Ten_Tk";
            this.txtTk_Du5.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTk_Du5.FoundIsValid = true;
            this.txtTk_Du5.Location = new System.Drawing.Point(487, 88);
            this.txtTk_Du5.MaxLength = 32;
            this.txtTk_Du5.Name = "txtTk_Du5";
            this.txtTk_Du5.OldValue = null;
            this.txtTk_Du5.Size = new System.Drawing.Size(90, 20);
            this.txtTk_Du5.TabIndex = 14;
            this.txtTk_Du5.TableName = "DMTK";
            this.txtTk_Du5.TextDisplay = this.txtTen_Tk_Du5;
            this.txtTk_Du5.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.txtTk_Du5.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtTk_Du5.Value = ((object)(resources.GetObject("txtTk_Du5.Value")));
            // 
            // lblTk_Du5
            // 
            this.lblTk_Du5.AutoSize = true;
            this.lblTk_Du5.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTk_Du5.Location = new System.Drawing.Point(400, 91);
            this.lblTk_Du5.Name = "lblTk_Du5";
            this.lblTk_Du5.Size = new System.Drawing.Size(66, 14);
            this.lblTk_Du5.TabIndex = 109;
            this.lblTk_Du5.Text = "Tk đối ứng 5";
            // 
            // txtTen_Tk_Du4
            // 
            this.txtTen_Tk_Du4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTen_Tk_Du4.BackColor = System.Drawing.SystemColors.Control;
            this.txtTen_Tk_Du4.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_Tk_Du4.CheckTextSearched = false;
            this.txtTen_Tk_Du4.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_Tk_Du4.Enabled = false;
            this.txtTen_Tk_Du4.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Tk_Du4.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_Tk_Du4.Location = new System.Drawing.Point(583, 71);
            this.txtTen_Tk_Du4.Name = "txtTen_Tk_Du4";
            this.txtTen_Tk_Du4.OldValue = null;
            this.txtTen_Tk_Du4.Size = new System.Drawing.Size(203, 13);
            this.txtTen_Tk_Du4.TabIndex = 13;
            this.txtTen_Tk_Du4.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtTen_Tk_Du4.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_Tk_Du4.Value = ((object)(resources.GetObject("txtTen_Tk_Du4.Value")));
            // 
            // txtTk_Du4
            // 
            this.txtTk_Du4.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtTk_Du4.CheckTextSearched = false;
            this.txtTk_Du4.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtTk_Du4.EmptyIsValid = true;
            this.txtTk_Du4.FieldDisplay = "Ten_Tk";
            this.txtTk_Du4.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTk_Du4.FoundIsValid = true;
            this.txtTk_Du4.Location = new System.Drawing.Point(487, 67);
            this.txtTk_Du4.MaxLength = 32;
            this.txtTk_Du4.Name = "txtTk_Du4";
            this.txtTk_Du4.OldValue = null;
            this.txtTk_Du4.Size = new System.Drawing.Size(90, 20);
            this.txtTk_Du4.TabIndex = 12;
            this.txtTk_Du4.TableName = "DMTK";
            this.txtTk_Du4.TextDisplay = this.txtTen_Tk_Du4;
            this.txtTk_Du4.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.txtTk_Du4.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtTk_Du4.Value = ((object)(resources.GetObject("txtTk_Du4.Value")));
            // 
            // lblTk_Du4
            // 
            this.lblTk_Du4.AutoSize = true;
            this.lblTk_Du4.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTk_Du4.Location = new System.Drawing.Point(400, 70);
            this.lblTk_Du4.Name = "lblTk_Du4";
            this.lblTk_Du4.Size = new System.Drawing.Size(66, 14);
            this.lblTk_Du4.TabIndex = 106;
            this.lblTk_Du4.Text = "Tk đối ứng 4";
            // 
            // FormKCT12Viewer
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.CheckDetailMost = true;
            this.ClientSize = new System.Drawing.Size(794, 539);
            this.Name = "FormKCT12Viewer";
            this.rptContainer.Panel1.ResumeLayout(false);
            this.rptContainer.Panel1.PerformLayout();
            this.rptContainer.ResumeLayout(false);
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        protected override void OnGenerateColumns()
        {
            object[][] objArray = new object[13][];
            object[] objArray2 = new object[4];
            objArray2[0] = "Ngay_Ps";
            objArray2[1] = "Ngày ghi sổ";
            objArray2[2] = "D";
            objArray[0] = objArray2;
            object[] objArray3 = new object[4];
            objArray3[0] = "Ngay_Ct";
            objArray3[1] = "Ngày chứng từ";
            objArray3[2] = "D";
            objArray[1] = objArray3;
            object[] objArray4 = new object[4];
            objArray4[0] = "So_Ct";
            objArray4[1] = "Số chứng từ";
            objArray4[2] = "C";
            objArray[2] = objArray4;
            object[] objArray5 = new object[4];
            objArray5[0] = "Dien_Giai";
            objArray5[1] = "Diễn giải";
            objArray5[2] = "C";
            objArray[3] = objArray5;
            objArray[4] = new object[] { "Tien", "Tổng tiền", "N", AppInstance.TextNumericFormat.LocalAmount };
            objArray[5] = new object[] { "Tien1", "Tiền 1", "N", AppInstance.TextNumericFormat.LocalAmount };
            objArray[6] = new object[] { "Tien2", "Tiền 2", "N", AppInstance.TextNumericFormat.LocalAmount };
            objArray[7] = new object[] { "Tien3", "Tiền 3", "N", AppInstance.TextNumericFormat.LocalAmount };
            objArray[8] = new object[] { "Tien4", "Tiền 4", "N", AppInstance.TextNumericFormat.LocalAmount };
            objArray[9] = new object[] { "Tien5", "Tiền 5", "N", AppInstance.TextNumericFormat.LocalAmount };
            objArray[10] = new object[] { "Tien6", "Tiền 6", "N", AppInstance.TextNumericFormat.LocalAmount };
            object[] objArray13 = new object[4];
            objArray13[0] = "Tk_Khac";
            objArray13[1] = "Tk kh\x00e1c";
            objArray13[2] = "C";
            objArray[11] = objArray13;
            objArray[12] = new object[] { "Tien_Khac", "Tiền kh\x00e1c", "N", AppInstance.TextNumericFormat.LocalAmount };
            base.LocalColNames = objArray;
            base.OnGenerateColumns();
        }

        protected override void OnMakeReport()
        {
            AppInstance.StartWorkingDate = (DateTime) this.txtNgay_Ct1.Value;
            AppInstance.EndWorkingDate = (DateTime) this.txtNgay_Ct2.Value;
            object obj2 = this.txtTk_Du1.Value;
            object obj3 = this.txtTk_Du2.Value;
            object obj4 = this.txtTk_Du3.Value;
            object obj5 = this.txtTk_Du4.Value;
            object obj6 = this.txtTk_Du5.Value;
            object obj7 = this.txtTk_Du6.Value;
            base.LocalTable = new ReportDataAccess().KCT12_Get(AppInstance.Subsidiaries, this.txtNgay_Ct1.Value, this.txtNgay_Ct2.Value, this.txtTk.Value, this.txtNo_Co.Value, ref obj2, ref obj3, ref obj4, ref obj5, ref obj6, ref obj7, AppInstance.DefLanguage);
            this.is_Tk_Du1 = obj2;
            this.is_Tk_Du2 = obj3;
            this.is_Tk_Du3 = obj4;
            this.is_Tk_Du4 = obj5;
            this.is_Tk_Du5 = obj6;
            this.is_Tk_Du6 = obj7;
            base.DataGridBrowser.Columns[5].HeaderText = "Tài khoản " + this.is_Tk_Du1;
            base.DataGridBrowser.Columns[6].HeaderText = "Tài khoản " + this.is_Tk_Du2;
            base.DataGridBrowser.Columns[7].HeaderText = "Tài khoản " + this.is_Tk_Du3;
            base.DataGridBrowser.Columns[8].HeaderText = "Tài khoản " + this.is_Tk_Du4;
            base.DataGridBrowser.Columns[9].HeaderText = "Tài khoản " + this.is_Tk_Du5;
            base.DataGridBrowser.Columns[10].HeaderText = "Tài khoản " + this.is_Tk_Du6;
            base.OnMakeReport();
        }

        protected override void OnSendParameters()
        {
            base.StimulReport["Ngay"] = "Từ ngày " + string.Format("{0:dd/MM/yyyy}", this.txtNgay_Ct1.Value) + " đến ngày " + string.Format("{0:dd/MM/yyyy}", this.txtNgay_Ct2.Value);
            if (string.IsNullOrEmpty(this.txtTk.Value.ToString()))
            {
                base.StimulReport["TaiKhoan"] = "";
            }
            else
            {
                base.StimulReport["TaiKhoan"] = this.txtTk.Value;
            }
            base.StimulReport["No_Co"] = this.txtNo_Co.Value;
            base.StimulReport["Tk_Du1"] = this.is_Tk_Du1;
            base.StimulReport["Tk_Du2"] = this.is_Tk_Du2;
            base.StimulReport["Tk_Du3"] = this.is_Tk_Du3;
            base.StimulReport["Tk_Du4"] = this.is_Tk_Du4;
            base.StimulReport["Tk_Du5"] = this.is_Tk_Du5;
            base.StimulReport["Tk_Du6"] = this.is_Tk_Du6;
        }
    }
}

